package com.epower.dao.epowerword;

import com.epower.dataobject.EpowerWordDO;
import java.util.List;
/***
 * DAO接口层
 * @author QuickDev
 *
 */
public interface EpowerWordDAO {
	//查询操作
	public EpowerWordDO getEpowerWordByOption(EpowerWordDO epowerWord);
	public List<EpowerWordDO> getEpowerWordListByOption(EpowerWordDO epowerWord);
	public EpowerWordDO getEpowerWordById(Integer id);
	//删除操作
	public boolean deleteEpowerWordById(Integer id);
	public Integer getEpowerWordCountByOption(EpowerWordDO epowerWord);
	//更新操作
	public boolean  updateEpowerWordByOption(EpowerWordDO epowerWord);
	//添加操作
	public Integer addEpowerWord(EpowerWordDO epowerWord);
	
	//通过课本id获取单词
    public EpowerWordDO getWordByBookid(int bookid,int index);
    
    //通过课本id获取单数量
    public int getWordCountByBookid(int bookid);
    
}